﻿@using NewLife.Common;
@using NewLife.Cube
@{
    var set = NewLife.Cube.Setting.Current;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title - @SysConfig.Current.DisplayName</title>
    <meta name="description" content="新生命团队,NewLife,魔方,Cube,XCode,XIoT,@SysConfig.Current.Company">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon">
    <!--网页字体 -->
    <script src="https://cdn.bootcss.com/webfont/1.6.28/webfontloader.js"></script>
    <script>
        WebFont.load({
            google: {
                "families": ["Poppins:300,400,500,600,700", "Roboto:300,400,500,600,700"]
            },
            active: function () {
                sessionStorage.fonts = true;
            }
        });
    </script>

    <!--页面自定义样式-->
    <link href="~/assets/cube.styles.css" rel="stylesheet" />
    <link href="~/assets/css/demo1/pages/login/login-6.css" rel="stylesheet" type="text/css" />

    <!--强制页面样式s -->
    <link href="~/assets/vendors/general/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet" type="text/css" />

    <!--可选页面样式 -->
    <link href="~/assets/vendors/general/fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/tether/dist/css/tether.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/bootstrap-datetime-picker/css/bootstrap-datetimepicker.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/bootstrap-timepicker/css/bootstrap-timepicker.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/bootstrap-select/dist/css/bootstrap-select.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/select2/dist/css/select2.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/ion-rangeslider/css/ion.rangeSlider.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/nouislider/distribute/nouislider.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/owl.carousel/dist/assets/owl.carousel.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/owl.carousel/dist/assets/owl.theme.default.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/dropzone/dist/dropzone.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/summernote/dist/summernote.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/bootstrap-markdown/css/bootstrap-markdown.min.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/animate.css/animate.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/toastr/build/toastr.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/morris.js/morris.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/sweetalert2/dist/sweetalert2.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/general/socicon/css/socicon.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/custom/vendors/line-awesome/css/line-awesome.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/custom/vendors/flaticon/flaticon.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/custom/vendors/flaticon2/flaticon.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/vendors/custom/viewer/viewer.min.css" rel="stylesheet" />

    <!--主题样式-->
    <link href="~/assets/css/demo1/style.bundle.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/css/demo1/skins/header/base/light.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/css/demo1/skins/header/menu/light.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/css/demo1/skins/brand/dark.css" rel="stylesheet" type="text/css" />
    <link href="~/assets/css/demo1/skins/aside/dark.css" rel="stylesheet" type="text/css" />

    <!-- 自定义样式 -->

    @RenderSection("css", required: false)

    <!-- 全局配置-->
    <script>
        var KTAppOptions = {
            "colors": {
                "state": {
                    "brand": "#5d78ff",
                    "dark": "#282a3c",
                    "light": "#ffffff",
                    "primary": "#5867dd",
                    "success": "#34bfa3",
                    "info": "#36a3f7",
                    "warning": "#ffb822",
                    "danger": "#fd3995"
                },
                "base": {
                    "label": ["#c5cbe3", "#a1a8c3", "#3d4465", "#3e4466"],
                    "shape": ["#f0f3ff", "#d9dffa", "#afb4d4", "#646c9a"]
                }
            }
        };
    </script>

    <!--核心脚本 -->
    <script src="~/assets/vendors/general/jquery/dist/jquery.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/popper.js/dist/umd/popper.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/js-cookie/src/js.cookie.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/moment/min/moment.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/tooltip.js/dist/umd/tooltip.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/perfect-scrollbar/dist/perfect-scrollbar.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/sticky-js/dist/sticky.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/wnumb/wNumb.js" type="text/javascript"></script>

</head>
<body class="kt-quick-panel--right kt-demo-panel--right kt-offcanvas-panel--right kt-header--fixed kt-header-mobile--fixed kt-subheader--enabled kt-subheader--fixed kt-subheader--solid kt-aside--enabled kt-aside--fixed kt-page--loading">

    <!-- 手机菜单栏 -->
    <div id="kt_header_mobile" class="kt-header-mobile  kt-header-mobile--fixed ">
        <div class="kt-header-mobile__logo">
            <a href="@set.StartPage">
                <img alt="@MUI.WebSite.CompanySetting.Current.Name" src="~/assets/image/logo.png" style="width:40px;height:40px;" />
            </a>
        </div>
        <div class="kt-header-mobile__toolbar">
            <button class="kt-header-mobile__toggler kt-header-mobile__toggler--left" id="kt_aside_mobile_toggler"><span></span></button>
            <button class="kt-header-mobile__topbar-toggler" id="kt_header_mobile_topbar_toggler"><i class="flaticon-more"></i></button>
        </div>
    </div>

    <!--网页显示内容-->
    <div class="kt-grid kt-grid--hor kt-grid--root">
        <div class="kt-grid__item kt-grid__item--fluid kt-grid kt-grid--ver kt-page">

            <!-- 侧边栏 -->
            <button class="kt-aside-close " id="kt_aside_close_btn"><i class="la la-close"></i></button>
            <div class="kt-aside  kt-aside--fixed  kt-grid__item kt-grid kt-grid--desktop kt-grid--hor-desktop" id="kt_aside">
                <!--侧边栏Logo-->
                @Html.Partial("_Nav_Aside")
                <!--侧边栏菜单-->
                @Html.Partial("_Nav_AsideMenu")
            </div>

            <!--右边内容页-->
            <div class="kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor kt-wrapper" id="kt_wrapper">
                <!-- 顶部菜单-->
                <div id="kt_header" class="kt-header kt-grid__item  kt-header--fixed ">
                    @Html.Partial("_Nav_TopMenu")
                    @Html.Partial("_Nav_TopBar")
                </div>

                <!-- 详细内容-->
                <div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor p-0" id="kt_content">

                    <div class="kt-container  kt-container--fluid  kt-grid__item kt-grid__item--fluid pl-0 pr-0">
                        @RenderBody()

                        @if (DbRunTimeModule.Enable)
                        {
                            <div class="kt-padding-0">
                                <div class="alert alert-secondary" role="alert">
                                    <div class="alert-text">
                                        @Html.Raw(DbRunTimeModule.GetInfo())
                                    </div>
                                </div>
                            </div>
                        }
                    </div>
                </div>

            </div>

        </div>
    </div>

    <!--购物车-->
    <div id="kt_quick_panel" class="kt-quick-panel" >
        <a href="#" class="kt-quick-panel__close" id="kt_quick_panel_close_btn"><i class="flaticon2-delete"></i></a>
        <div id="kt_quick_panel_content">
            @Html.Partial("_Quick_Panel")
        </div>

    </div>

    <!--滚动条-->
    <div id="kt_scrolltop" class="kt-scrolltop">
        <i class="fa fa-arrow-up"></i>
    </div>

    <div id="div_footer">

    </div>

    <!----------------------------------------以下为js脚本区域----------------------------------------------------------------->
    <!-- 可选脚本 -->
    <script src="~/assets/vendors/general/jquery-form/dist/jquery.form.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/block-ui/jquery.blockUI.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/js/vendors/bootstrap-datepicker.init.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-datetime-picker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-datetime-picker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="~/assets/vendors/general/bootstrap-timepicker/js/bootstrap-timepicker.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/js/vendors/bootstrap-timepicker.init.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-daterangepicker/daterangepicker.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-maxlength/src/bootstrap-maxlength.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/vendors/bootstrap-multiselectsplitter/bootstrap-multiselectsplitter.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-select/dist/js/bootstrap-select.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-switch/dist/js/bootstrap-switch.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/js/vendors/bootstrap-switch.init.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/select2/dist/js/select2.full.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/ion-rangeslider/js/ion.rangeSlider.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/typeahead.js/dist/typeahead.bundle.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/handlebars/dist/handlebars.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/inputmask/dist/jquery.inputmask.bundle.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/inputmask/dist/inputmask/inputmask.date.extensions.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/inputmask/dist/inputmask/inputmask.numeric.extensions.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/nouislider/distribute/nouislider.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/owl.carousel/dist/owl.carousel.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/autosize/dist/autosize.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/clipboard/dist/clipboard.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/dropzone/dist/dropzone.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/summernote/dist/summernote.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/markdown/lib/markdown.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-markdown/js/bootstrap-markdown.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/js/vendors/bootstrap-markdown.init.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/bootstrap-notify/bootstrap-notify.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/js/vendors/bootstrap-notify.init.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/jquery-validation/dist/jquery.validate.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/jquery-validation/dist/additional-methods.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/js/vendors/jquery-validation.init.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/toastr/build/toastr.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/raphael/raphael.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/morris.js/morris.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/chart.js/dist/Chart.bundle.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/vendors/bootstrap-session-timeout/dist/bootstrap-session-timeout.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/vendors/jquery-idletimer/idle-timer.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/waypoints/lib/jquery.waypoints.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/counterup/jquery.counterup.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/es6-promise-polyfill/promise.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/sweetalert2/dist/sweetalert2.min.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/js/vendors/sweetalert2.init.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/jquery.repeater/src/lib.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/jquery.repeater/src/jquery.input.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/jquery.repeater/src/repeater.js" type="text/javascript"></script>
    <script src="~/assets/vendors/general/dompurify/dist/purify.js" type="text/javascript"></script>
    <script src="~/assets/vendors/custom/viewer/viewer-jquery.min.js"></script>

    <!--主题样式脚本 -->
    <script src="~/assets/js/demo1/scripts.bundle.js" type="text/javascript"></script>


    <!--登录页面脚本 -->
    <script src="~/assets/js/demo1/pages/login/login-general.js" type="text/javascript"></script>


    <!-- 添加导航点击后点亮事件 -->
    <script type="text/javascript">
        $('.kt-menu__subnav .kt-menu__item').click(function () {
            $(".kt-menu__item").removeClass("kt-menu__item--active");
            $(this).addClass("kt-menu__item--active");
        });
    </script>
    <!--控件支持-->
    <script>
        $(function () {
            $("input.chkSwitch").bootstrapSwitch();
            $('.form_datetime').datetimepicker({
                format: "yyyy-mm-dd",
                language: "zh-CN",
                todayBtn: true,
                clearBtn: true,
                todayHighlight: true,
                autoclose: true,
                startView: 2,
                minView: 2,
                forceParse: 0,
                pickerPosition: 'bottom-left'
             });
            $('.form_datepicker').datetimepicker({
                format: "yyyy-mm-dd HH:ii:ss",
                language: "zh-CN",
                todayBtn: true,
                clearBtn: true,
                todayHighlight: true,
                autoclose: true,
                startView: 2,
                minView: 2,
                forceParse: 0,
                pickerPosition: 'bottom-left'
            });
            $('.form_datetime_mm').datetimepicker({
                format: "yyyy-mm",
                language: "zh-CN",
                todayBtn: true,
                clearBtn: true,
                todayHighlight: true,
                autoclose: true,
                startView: 3,
                minView: 3,
                forceParse: 0,
                pickerPosition: 'bottom-left'
            });
             $('.form_datetime_yyyy').datetimepicker({
                format: "yyyy-mm",
                language: "zh-CN",
                todayBtn: true,
                clearBtn: true,
                todayHighlight: true,
                autoclose: true,
                startView: 4,
                minView: 4,
                forceParse: 0,
                pickerPosition: 'bottom-left'
             });
            toastr.options = {
                "closeButton": true,
                "debug": false,
                "newestOnTop": false,
                "progressBar": true,
                "positionClass": "toast-top-right",
                "preventDuplicates": false,
                "onclick": null,
                "showDuration": "300",
                "hideDuration": "1000",
                "timeOut": "5000",
                "extendedTimeOut": "1000",
                "showEasing": "swing",
                "hideEasing": "linear",
                "showMethod": "fadeIn",
                "hideMethod": "fadeOut"
            };

            @*双击跳转到form
            _List_Data_Action.cshtml变更
            @Html.ActionLink("编辑", "Edit", new { id = @Model },new{@class="editcell"})*@
            $('tr').dblclick(function () {
                var $this = $(this);
                var row = $this.closest("tr");
                //优先加载侧边栏
                var dblp = row.find('.dblclickpanel');
                if (dblp.length > 0) {
                   var id = $(dblp).data("id");
                    var url = $(dblp).data("url");
                    $.ajax({
                        url: url,
                        data: { id: id },
                        success: function (data) {
                            $("#kt_quick_panel_toggler_btn").trigger("click");
                            $("#kt_quick_panel_content").html(data);
                            //$("#kt_quick_panel").css("opacity",1);
                            console.log(Date.now());
                        }
                    });
                    return;
                }
                //编辑页面
                var findcell = row.find('.editcell');
                if (findcell.length > 0) {
                    window.location.href = findcell.attr("href");
                }


            });
        });
    </script>

    <!--自定义脚本-->
    <script src="~/assets/cube.js"></script>
    @RenderSection("scripts", required: false)
</body>
</html>
